import { Field, ObjectType } from '@nestjs/graphql';

@ObjectType() //@ObjectType()可以将对象变成graphql对象
export class CommonType {
  @Field()
  id: string;
  @Field({nullable:true})
  createAt: Date;
  @Field({nullable:true})
  createBy: string;
  @Field({nullable:true})
  updateAt: Date;
  @Field({nullable:true})
  updateBy: string;
  @Field({nullable:true})
  deleteAt: Date;
  @Field({nullable:true})
  deleteBy: string;
}
